﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="eGoldSearch.aspx.cs" Inherits="gold_eGoldSearch" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="Javascript/jquery-1.4.2.src.js"></script>
    <script type="text/javascript" charset="utf-8" src="Javascript/jqSuportFunctions.js" ></script>
    <script type="text/javascript" src="Javascript/search.js"></script>
    <script type="text/javascript" src="Javascript/jModeltitle.js"></script>
    <script src="Javascript/calendar/calendar.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function () {
            var Request = new QueryString();
            var col = Request["col"];
            var date1 = Request["date1"];
            var date2 = Request["date2"];
            var key = Request["key"];
            debugger;
            switch (col) {

                case "em_qljj":
                    $("#title").html(GetSearchTitle('em_qljj', '潜力掘金', '4'));
                    break;
                case "em_kmyb":
                    $("#title").html(GetSearchTitle('em_kmyb', '快马一鞭', '4'));
                    break;
                case "em_hmjm":
                    $("#title").html(GetSearchTitle('em_hmjm', '黑马解密', '4'));
                    break;
                case "em_bkjj":
                    $("#title").html(GetTitleDetail('em_bkjj', '板块掘金', '4'));
                    break;
                case "em_ybtj":
                    $("#title").html(GetTitleDetail('em_ybtj', '研报淘金', '4'));
                    break;
                case "em_jzwd":
                    $("#title").html(GetTitleDetail('em_jzwd', '价值洼地', '4'));
                    break;
            }
            $('#hid_col').val(col);
            $("#date1").val(date1);
            $("#date2").val(date2);
            $("#search1").val(unescape(key));


        });

        function show_detail(id) {
            var col = $('#hid_col').val();
            window.location.href = "eGoldDetail.aspx?col=" + col + "&id=" + id + "&date1=" + $("#date1").val() + "&date2=" + $("#date2").val();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="mc_cnt">
    <div class="mc_txt">
    <div id="title"></div>
    <br>
    <div>
     <table  width="95%" border="0" cellspacing="1" cellpadding="0" class="mtab mc_search" >
       <tr>
         <th class="th1" colspan="1">搜索结果</th>
      </tr>
      <tr>    
       <asp:Repeater ID="Repeater1" runat="server">
       <ItemTemplate>   
        <tr >
             <td valign=top><a href="javascript:void(0)" onclick="show_detail('<%#Eval("id")%>')"><%#DataBinder.Eval(Container.DataItem, "key")%> (<%#Convert.ToDateTime(Eval("date")).ToString("yyyy-MM-dd")%>)</a></td>
             <%-- <td><a href="javascript:void(0)" onclick="show_detail('<%#Eval("id")%>')"><%#Convert.ToDateTime(Eval("date")).ToString("yyyy-MM-dd")%></a></td>--%>
        </tr>
        </ItemTemplate>
       </asp:Repeater>    
       <tr>
                <th colspan="1" class="pager">
                    <div class="pager"> &nbsp;
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" UrlPaging="True"
                            OnPageChanged="AspNetPager1_PageChanged" FirstPageText="第一页" 
                            LastPageText="最后一页" NextPageText="下一页" PrevPageText="上一页">
                        </webdiyer:AspNetPager>
                    </div>
                </th>
        </tr>         
    </table>
    
    </div>
    </div>
    </div>
    <input id="hid_col" type=hidden  value="" runat=server />  
    </form>
</body>
</html>
